@import "../../../styles/variables";

.panel {
	display: flex;
	flex-direction: column;
	width: 400px;
	height: 100%;

	h2 {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		margin: 15px 20px;

		span {
			flex: 1;
		}

		svg {
			margin-right: 5px;
			font-size: 19px;
			fill: #888888;
		}
	}

	section {
		display: flex;
		flex-direction: column;
		flex: 1;
		overflow: hidden;
		padding: 0 20px;
	}

	footer {
		flex: 0 0 auto;
		padding: 15px;
		button {
			width: 100%;

			svg {
				margin-right: 5px;
			}
		}
	}
}

.rows {
	flex: 1;
	overflow: auto;
}

.rowWrapper {
	display: flex;
	font-size: 13px;
	align-items: center;
}

div.selectedRow {
	border: 1px solid $primary-color;
	background-color: $primary-pale-color;
	border-radius: 4px;
}

.row {
	padding: 6px;
	border: 1px solid transparent;
	transition: all 0.2s ease-in-out;

	label {
		color: #999999;
		font-size: 11px;
	}

	.id {
		margin-left: 10px;
		flex: 0 1 50px;
		color: #999999;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dateCreated {
		flex: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.edit {
		margin-right: 10px;
	}

	.del {
		flex: 0 0 30px;
		align-items: center;
		cursor: pointer;

		&.disabled {
			cursor: inherit;

			svg {
				opacity: 0.2;
			}
		}

		&:hover {
			svg {
				fill: #990000;
			}
		}
	}
}

button.dataSetHistoryBtnClass {
	color: white;
	border-color: white;

	&:disabled {
		color: white;
		border-color: white;
		opacity: 0.2;
	}
}

.currentVersionRow {
	flex: 0 0 auto;

	.row {
		border: 1px solid $secondary-color;
		background-color: $secondary-pale-color;
		color: $secondary-dark-color;
		margin-bottom: 10px;
		border-radius: 4px;
	}
}
